package com.cuit.zuke.order.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName(value = "hotel_order")
@Data
public class HotelOrder {

    @TableId
    private String orderId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "zukecode")
    private String zukeCode;

    @TableField(value = "roomcode")
    private String roomCode;

    @TableField(value = "book_time")
    private Date bookTime;

    @TableField(value = "book_days")
    private Integer bookDays;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "idcard")
    private String idcard;

    @TableField(value = "total")
    private Double total;

    @TableField(value = "status")
    private Byte status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableLogic
    @TableField(value = "is_deleted")
    private Byte isDelete;
}
